import request from "@/utils/request";



// 搜索的歌曲
export function getMusicInfo(params) {
  return request({
    url: "/cloudsearch",
    method: "GET",
    params,
  });
}

// 获取歌曲详情
export function getMusicDetailInfo(params) {
  return request({
    url: "/song/detail?ids=" + params,
    method: "GET",
  });
}

// 获取歌曲的URL
export function getURLInfo(params) {
  return request({
    url: "/song/url",
    method: "GET",
    params
  });
}

// 推荐歌单列表
export function getRecomentListInfo(params) {
  return request({
    url: "/personalized",
    method: "GET",
    params
  });
}
// 榜单列表
export function getRankingListInfo(params) {
  return request({
    url: "/toplist",
    method: "GET",
    params
  });
}
//获取歌单详情
export function getMusicPlaylistInfo(params) {
  return request({
    url: "/playlist/detail",
    method: "GET",
    params
  });
}

// 获取歌词
export function getMusicLyricInfo(params) {
  return request({
    url: "/lyric",
    method: "GET",
    params
  });
}
// 
export function getInformationDetailsInfo(params) {
  return request({
    url: "/album?id="+params,
    method: "GET"
  });
}
// 获取默认歌曲
export function getDefaultDetailId() {
  return request({
    url: "/personalized/newsong",
    method: "GET",
  });
}


 